package org.scboy.dbms.dubbo;

import org.apache.dubbo.config.annotation.DubboService;
import org.scboy.dbms.api.DictionaryManager;
import org.scboy.dbms.cache.DictionaryCache;
import org.springframework.beans.factory.annotation.Autowired;

@DubboService
public class DictionaryManagerImpl implements DictionaryManager {

	@Autowired
	DictionaryCache cache;
	
	@Override
	public String getValue(String id) {
		return cache.getValue(id);
	}

	@Override
	public String getName(String id) {
		return cache.getName(id);
	}

	@Override
	public String getColor(String id) {
		return cache.getColor(id);
	}
	
}
